package com.yshkj.payment.repository;

import com.yshkj.payment.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 账号Repository
 * 其中账号包括Account及其子类
 * Created by 唐旭 on 2016/9/22.
 */
public interface AccountRepository extends JpaRepository<Account, String> {

    //    @Cacheable(value = "Account", key = "#root.args[0]")
    Account findTop1ByUsername(String username);
}
